package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @Discription：    
 * @Author：liuhongjun  
 * @ClassName: DRGs  
 * @Date: 2018年10月29日 下午8:37:36  
 * @Version：3.1.0 DHC.DRGs
 */
@Entity
@Table(name="T_ESINDEX", schema = "DRGs")
public class EsIndex extends KoalaLegacyEntity {

	private static final long serialVersionUID = 6165557133209999388L;

	//es服务id
	@Id
	@Column(name = "SALES_ID", nullable = false)
	private String salesId;
	
	//es索引
	@Column(name = "ES_INDEX", nullable = false)
	private String esIndex;
	
	//业务名称
	@Column(name = "SALES_NAME")
	private String salesName;
	
	//es服务器ip
	@Column(name = "ES_SERVERIP")
	private String  esServerip;
	
	//es服务端口
	@Column(name = "ES_PORT")
	private String esPort;
	
	//ES索引字段
	@Column(name = "ES_FILDES")
	private String esFildes;
	
	//备注
	@Column(name = "REMARK")
	private String remark;
	
	//es创建索引使用的端口
	@Column(name = "ES_CREATE_PORT")
	private String esCreatePort;

	public EsIndex() {
		super();
	}

	@Override
	public String toString() {
		return "EsIndex [salesId=" + salesId + ", esIndex=" + esIndex + ", salesName=" + salesName + ", esServerip="
				+ esServerip + ", esPort=" + esPort +",esFildes="+esFildes +", esCreatePort="+esCreatePort +", remark=" + remark + "]";
	}

	public String getSalesId() {
		return salesId;
	}

	public void setSalesId(String salesId) {
		this.salesId = salesId;
	}

	public String getEsIndex() {
		return esIndex;
	}

	public void setEsIndex(String esIndex) {
		this.esIndex = esIndex;
	}

	public String getSalesName() {
		return salesName;
	}

	public void setSalesName(String salesName) {
		this.salesName = salesName;
	}

	public String getEsServerip() {
		return esServerip;
	}

	public void setEsServerip(String esServerip) {
		this.esServerip = esServerip;
	}

	public String getEsPort() {
		return esPort;
	}

	public void setEsPort(String esPort) {
		this.esPort = esPort;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}



	
	public String getEsCreatePort() {
		return esCreatePort;
	}

	public void setEsCreatePort(String esCreatePort) {
		this.esCreatePort = esCreatePort;
	}

	public String getEsFildes() {
		return esFildes;
	}

	public void setEsFildes(String esFildes) {
		this.esFildes = esFildes;
	}

	@Override
	public Serializable getId() {
		return salesId;
	}

	@Override
	public String[] businessKeys() {
		// TODO Auto-generated method stub
		return null;
	}

}
